﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminaq/Adminpage.Master" AutoEventWireup="true"
    CodeBehind="AQManagerMenu.aspx.cs" Inherits="ToolwebAQ.adminaq.AQManagerMenu" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.11.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content-box">
        <div class="box-header clear">
            <h2>
                Phân quyền menu</h2>
        </div>
        <div class="box-body clear">
            <div>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <dx:ASPxGridView ID="grdMenu" ClientInstanceName="grdMenu" AutoGenerateColumns="False"
                            KeyFieldName="Tree_ID" Width="100%" runat="server" OnCustomButtonCallback="grdMenu_CustomButtonCallback">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="STT" Width="2px" VisibleIndex="0">
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="Tree_Name" Caption="TÊN MENU" VisibleIndex="1">
                                    <EditFormSettings VisibleIndex="1" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataCheckColumn FieldName="isused" Caption="TÌNH TRẠNG" VisibleIndex="2">
                                    <EditFormSettings VisibleIndex="2" />
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewDataCheckColumn>
                                <dx:GridViewCommandColumn Caption="CHỨC NĂNG" ButtonType="Image" Width="50px" VisibleIndex="3">
                                    <EditButton Visible="True">
                                        <Image ToolTip="Sửa" Url="../images/edit.png" />
                                    </EditButton>
                                    <NewButton Visible="True">
                                        <Image ToolTip="Thêm mới" Url="../images/new.png" />
                                    </NewButton>
                                    <CancelButton Visible="True">
                                        <Image ToolTip="Đóng" Url="../images/cancel.png" />
                                    </CancelButton>
                                    <UpdateButton Visible="True">
                                        <Image ToolTip="Lưu" Url="../images/update.png" />
                                    </UpdateButton>
                                    <HeaderStyle HorizontalAlign="Center" />
                                </dx:GridViewCommandColumn>
                            </Columns>
                            <Styles>
                                <AlternatingRow Enabled="true" />
                            </Styles>
                            <Styles>
                                <CommandColumn Spacing="2px" Wrap="False" />
                            </Styles>
                            <SettingsEditing EditFormColumnCount="3" />
                            <SettingsPager PageSize="10" />
                            <Settings ShowTitlePanel="true" />
                        </dx:ASPxGridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
</asp:Content>
